<template>
    <div class="form-container">
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }">硕士学位申请系统</el-breadcrumb-item>
            <el-breadcrumb-item>评阅盲审总评</el-breadcrumb-item>
        </el-breadcrumb>
        <h2>盲审总评结果</h2>
        <el-form :model="form" ref="form" label-width="100px">
            <el-form-item label="学号" prop="student_id">
                <el-input v-model="form.student_id"></el-input>
            </el-form-item>
            <el-form-item label="姓名" prop="paperName">
                <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="盲审意见" prop="rewiew_comment">
                <el-input type="paperAbstract" v-model="form.review_comment"></el-input>
            </el-form-item>

            <el-form-item label="盲审结果" prop="review_result">
                <el-radio-group v-model="form.review_result">
                    <el-radio label="1">同意</el-radio>
                    <el-radio label="0">不同意</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item label="盲审时间" prop="review_time">
                <el-date-picker v-model="form.review_time" type="date" placeholder="请选择日期"></el-date-picker>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
import axios from 'axios';
// import { mapState } from "vuex";
export default {
    data() {
        return {
            form: {
                student_id: "",
                name: "",
                review_comment: "",
                review_result: '1',
                review_time: "",
            },
            //   isFormDisabled: "false",
        };
    },
    methods: {},
    computed: {
        // ...mapState("user", ["token"]),
    },
    created() {
        console.log("这里", this.token)
        axios({
            method: 'GET',
            url: 'http://localhost:8081/api/user/info?identity=' + 0 + '&token=' + this.token
        }).then(response => {
            console.log(response.data.data)
            this.form.student_id = response.data.data.student_id
            this.form.name = response.data.data.student_name,
                axios({
                    method: 'GET',
                    url: 'http://localhost:8081/api/check/part/' + this.form.student_id
                }).then(response => {
                    console.log(response.data.data)

                    this.form.review_comment = response.data.data.comment
                    this.form.review_result = response.data.data.accept.toString()
                    this.form.review_time = response.data.data.time

                })
        })
    }
};
</script>

<style scoped>
/*.form-container {*/
/*    width: 90%;*/
/*    margin: 0 auto;*/
/*    !* padding: 50px 100px; *!*/
/*    !* border: 1px solid red; *!*/
/*}*/
</style>
